package com.yq.cp.controller.yw;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yq.cp.entity.common.ApiResult;
import com.yq.cp.entity.yw.YwZbgl;
import com.yq.cp.entity.yw.vo.YwZbglVo;
import com.yq.cp.service.yw.YwZbglService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 运维-值班管理 前端控制器
 * </p>
 *
 * @author zh
 * @since 2024-09-07
 */
@RestController
@RequestMapping("/yw-zbgl")
public class YwZbglController {

    @Resource
    YwZbglService ywZbglService;

    @ResponseBody
    @PostMapping("all")
    public ApiResult all(@RequestBody YwZbglVo ywZbgl) {
        IPage<YwZbgl> all = ywZbglService.all(ywZbgl);
        return ApiResult.ok().data(all);
    }
}

